package com.xjtu.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 描述单个收费项目(BillItem)实体类
 *
 * @author makejava
 * @since 2023-11-12 14:25:06
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BillItem implements Serializable {
    private static final long serialVersionUID = 419644112732269947L;
    
    private Integer id;
    /**
     * 单价
     */
    private Double price;
    /**
     * 可以考虑用 json 格式存储
     */
    private String detail;
    /**
     * 表示多选一，需要在应用层处理
     */
    private Integer group;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Integer getGroup() {
        return group;
    }

    public void setGroup(Integer group) {
        this.group = group;
    }

}

